import { Map } from 'immutable'

import * as actionTypes from "./constants";

const defaultState = Map({
  playList: []
})

function reducer(state = defaultState, action) {
  switch(action.type) {
    case actionTypes.CHANGE_PLAY_LIST:
      return state.set("playList", action.playList)
    default:
      return state
  }
}

export default reducer